package com.onpositive.datamap.values.impl;

import com.onpositive.data.units.DateWithAccuracy;
import com.onpositive.datamap.IPriceRange;
import com.onpositive.datamap.core.IDataProperty;

public class PriceRange extends ScalarRange implements IPriceRange{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String currency;
	private DateWithAccuracy date;

	public PriceRange(IDataProperty prop, Object comment, double low, String currency, DateWithAccuracy date) {
		super(prop, comment, low);
		this.currency=currency;
		this.date=date;		
	}

	public PriceRange(IDataProperty prop, Object comment, double low,
			Double high,String currency,DateWithAccuracy date) {
		super(prop, comment, low, high);
		this.currency=currency;
		this.date=date;
	}

	@Override
	public String currencyCode() {
		return currency;
	}

	@Override
	public DateWithAccuracy date() {
		return date;
	}

}
